package com.zbkj.service.service.shop;

import com.zbkj.common.model.shop.EbShopTypeCommission;

import java.util.List;

public interface EbShopTypeCommissionService {
    /**
     * 添加
     * @param ebShopTypeCommissionList
     * @return
     */
    int add(List<EbShopTypeCommission> ebShopTypeCommissionList);

    /**
     * 修改
     * @param ebShopTypeCommissionList
     * @return
     */
    int  update(List<EbShopTypeCommission> ebShopTypeCommissionList);

    /**
     * 查询分类
     * @param id
     * @return
     */
    EbShopTypeCommission findById(Long id);

    /**
     * 根据店铺类型查询分佣信息
     * @param shopTypeId
     * @return
     */
    List<EbShopTypeCommission> findByShopTypeId(Integer shopTypeId);

    /**
     * 根据店铺类型和商品类型查询分佣信息
     * @param productClassificationId
     * @param shopTypeId
     * @return
     */
    EbShopTypeCommission findByProductClassificationId(Integer productClassificationId,Integer shopTypeId);
}
